package javaer.starter.placeholder.character;

import javaer.starter.constants.SymbolEnum;
import javaer.starter.placeholder.PlaceholderTokenParser;

/**
 * 替换java文件中的package这一行为freemarker转义的占位符
 *
 * @author yangzhen
 * @date 2021/11/27 14:44
 * @since 1.0.0
 */
public class ClassPackageTokenHandler extends PlaceholderTokenParser {

    @Override
    public String handleToken(String content) {
        return SymbolEnum.CLASS_PACKAGE.getSymbol();
    }

    @Override
    public String getOpenToken() {
        return SymbolEnum.PACKAGE.getSymbol();
    }

    @Override
    public String getCloseToken() {
        return SymbolEnum.SEMICOLON.getSymbol();
    }
}
